
MOC_DIR = .build
OBJECTS_DIR = .build
RCC_DIR = .build
UI_DIR = .build

TEMPLATE = app
TARGET = dmxserver
DEPENDPATH += .
INCLUDEPATH += .

QT += network

# Input
HEADERS += DmxSetter.h \
 	DmxServer.h \
	SwitchWatcher.h
	
SOURCES += DmxSetter.cpp \
	DmxServer.cpp \
	SwitchWatcher.cpp \
	main.cpp 

HEADERS += DmxDevice.h \
           DmxRawDevice.h \
           DmxUsbProDevice.h \
           FtdiDevice.h \
           ofxGenericDmx.h \
           ParallelPort.h
SOURCES += DmxDevice.cpp \
           DmxRawDevice.cpp \
           DmxUsbProDevice.cpp \
           FtdiDevice.cpp \
           ofxGenericDmx.cpp \
           ParallelPort.cpp

LIBS += -lftdi

clienttest: {
	HEADERS -= DmxSetter.h \
		DmxServer.h \
		SwitchWatcher.h
		
	SOURCES -= DmxSetter.cpp \
		DmxServer.cpp \
		SwitchWatcher.cpp \
		main.cpp 
	
	HEADERS -= DmxDevice.h \
		DmxRawDevice.h \
		DmxUsbProDevice.h \
		FtdiDevice.h \
		ofxGenericDmx.h \
		ParallelPort.h
	SOURCES -= DmxDevice.cpp \
		DmxRawDevice.cpp \
		DmxUsbProDevice.cpp \
		FtdiDevice.cpp \
		ofxGenericDmx.cpp \
		ParallelPort.cpp

	SOURCES -= main.cpp
	SOURCES += DmxClient.cpp \
		main_clienttest.cpp
	HEADERS += DmxClient.h
	TARGET = clienttest
	LIBS -= -lftdi
}
